set Text Decoration
Sets the text decoration for the selected range of text. Required scope: "text/character"
Parameters
the text block whose text decoration should be changed.
the decoration configuration to apply.
the start index of the UTF-16 range whose text decoration should be changed. If the value is negative and the block is currently being edited, this will fall back to the start of the current cursor index / selected range. If the value is negative and the block is not being edited, this will fall back to the start of the entire text range.
the index after the last character whose text decoration should be changed. If the value is negative and the block is currently being edited, this will fall back to the end of the current cursor index / selected range. If the value is negative and the block is not being edited, this will fall back to the end of the entire text range.